package com.app.TCES.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.app.TCES.domain.Class;
import com.app.TCES.domain.ClassSet;
import com.app.TCES.domain.Department;
import com.app.TCES.mapper.ClassMapper;

@Service
public class ClassService {
    @Autowired
	ClassMapper classMapper;
	public List<ClassSet> getClassSet() {
		
		return classMapper.getClassSet();
	}
	public void deleteClass(Integer classId) {

		classMapper.deleteClass(classId);
		
	}
	public int selectClass(Class classes) {
		
		return classMapper.selectClass(classes);
	}
	
	public int selectClassName(Class classes) {
		return classMapper.SelectClassName(classes);
	}
	
	public void insertClass(Class classes) {
		
		classMapper.insertClass(classes);
		
	}
	public void updateClass(Class classes) {
		
		classMapper.updateClass(classes);
	}

	public List<Department> getDepartments(){
		return classMapper.getDepartments();
	}
	
	public List<Class> getClassList(String deptName){
		return classMapper.getClassList(deptName);
	}
	
}
